package br.com.ss.portal.controller.relatorio;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import br.com.ss.portal.model.dao.IEleitorDAO;
import br.com.ss.portal.model.dao.IResponsavelDAO;
import br.com.ss.portal.model.entity.Eleitor;
import br.com.ss.portal.model.entity.Responsavel;

@Service
@Transactional
public class RelatorioService implements IRelatorioService {

	@Autowired
	private IResponsavelDAO iResponsavelDAO;

	@Autowired
	private IEleitorDAO iEleitorDAO;

	@Override
	public List<Eleitor> listEleitores() {
		return iEleitorDAO.getALL();
	}

	@Override
	public List<Responsavel> listResponsaveis() {
		return iResponsavelDAO.getALL();
	}

}
